package com.graduation.smartparkingplatform.Service;

import com.github.pagehelper.PageInfo;
import com.graduation.smartparkingplatform.Pojo.Opinion;

public interface OpinionService {
  // 获取Opinion列表（分页）
  public PageInfo<Opinion> getOpinion(Integer page, Integer count);

  // 根据ID搜索意见
  public Opinion searchOpinionById(Integer opinionId);

  // 筛选处理/未处理意见
  public PageInfo<Opinion> searchOpinionStatus(Integer page, Integer count, Boolean status);

  // 时间正序
  public PageInfo<Opinion> OpinionByAsc(Integer page, Integer count);

  // 时间倒序
  public PageInfo<Opinion> OpinionByDesc(Integer page, Integer count);

  // 修改Opinion状态
  public Boolean changeOpinionStatus(Integer opinionId, Boolean status);

  // 删除意见
  public Boolean deleteOpinion(Integer opinionId);
}
